package cn.yuanqiao.archive.cqbctuisong.domain;
/**
 * @author 赵常飞
 * @date 2024/7/1 18:18
 */

import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;

/**
 *@Author: 赵常飞
 *@Date: 2024/7/1 18:18
 *@Description:
 *@Note:
 */

public class TenantCqbcPush extends BaseEntity {
    private final String BIGTABLENAME = "_CQBC_PUSH";

    public TenantCqbcPush() {
        String tenantCode = SecurityUtils.getLoginUser().getSysUser().getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            throw new ServiceException("TenantCode is null");
        }else {
            this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
        }
    }
    private static final long serialVersionUID = 1L;
    private String tableName;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    private Long dataId;

    private String state;

    private String path;

    private Long categoryId;

    private Long sixingId;

    private Long pusher;

    private String pushTime;

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Long getSixingId() {
        return sixingId;
    }

    public void setSixingId(Long sixingId) {
        this.sixingId = sixingId;
    }

    public Long getPusher() {
        return pusher;
    }

    public void setPusher(Long pusher) {
        this.pusher = pusher;
    }

    public String getPushTime() {
        return pushTime;
    }

    public void setPushTime(String pushTime) {
        this.pushTime = pushTime;
    }

    @Override
    public Long getCategoryId() {
        return categoryId;
    }

    @Override
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }
}
